home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / rain_for.swf / scripts / __Packages / Speed.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  671 b   |  33 lines

  1. class Speed extends Germ
  2. {
  3.    var nSegment;
  4.    var oData;
  5.    var mcBuild;
  6.    var handler;
  7.    function Speed()
  8.    {
  9.       super();
  10.       this.gotoAndStop(Math.ceil(Math.random() * this._totalframes));
  11.    }
  12.    function update(nElapsed)
  13.    {
  14.    }
  15.    function react(oPlayer)
  16.    {
  17.       oPlayer.speed();
  18.       switch(this.nSegment)
  19.       {
  20.          case 0:
  21.             this.oData.sPowerupBot = null;
  22.             break;
  23.          case 1:
  24.             this.oData.sPowerupMid = null;
  25.             break;
  26.          case 2:
  27.             this.oData.sPowerupTop = null;
  28.       }
  29.       delete this.mcBuild.mcGerm;
  30.       this.handler.removeClip(this);
  31.    }
  32. }
  33.